chore(deps): allow anesthetic>=2.9.0 to unblock jax>=0.7 / numpy>=2 resolution#1306
Merged
Conversation
The previous `anesthetic==2.8.14` pin (for python<3.13) transitively required `numpy<2`, which forced pip's resolver to backsolve `jax` to 0.4.28 in the release.yml install chain. JAX 0.7+ requires numpy>=2. After this bump: - Local resolution: anesthetic 2.14.6, numpy 2.2.6, jax 0.9.2 - The split python-version branches collapse to a single line — 2.9.0+ supports python>=3.9 so the conditional pin is no longer needed. Comment around the nss/blackjax notes updated: the prior "bump only after both pins move together" constraint is now resolved. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
anestheticfrom the exact pin==2.8.14(python<3.13 branch) to>=2.9.0, collapsing the previous two python-version-conditional lines into one.numpy<2, which caused pip's resolver inrelease.yml'suntil ... pip install autoconf[optional]==$VERSION ...block to backsolvejaxto0.4.28. Subsequent steps then silently dropped JAX from the environment entirely, so everyrun_scriptsjob failed in ~0.1s withModuleNotFoundError: No module named 'jax'.pip install -e .[optional]locally resolves to anesthetic 2.14.6, numpy 2.2.6, jax 0.9.2.Why this is safe
anesthetic>=2.9.0supports Python 3.9 (the existingpython_version<'3.13'branch's lower bound), so the conditional pin is no longer needed.>=constraint matches what was already in place for python>=3.13.Test plan
pip install -e .[optional]resolves jax 0.7+ (got 0.9.2)pytest test_autofit— 1404 passed, 13 failed (all pre-existing NSS tests requiring the manually-installedhandley-lab/blackjaxfork viapip install autofit[nss], unrelated to anesthetic)pre_builddispatch🤖 Generated with Claude Code